﻿<%@ WebHandler Language="C#" Class="HandlerSMSLastCount" %>

using System;
using System.Web;

using Cisoft.Cisoft3G.BLL;
using Cisoft.Cisoft3G.Model;

public class HandlerSMSLastCount : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        //context.Response.Write("Hello World");

        //int count = 0;
        //count = new Cisoft.Cisoft3G.BLL.SentBO().GetList(" ST_SentTime >='" + DateTime.Now.ToShortDateString() +
        //    " 00:00:00' and ST_SentTime <='" + DateTime.Now.ToShortDateString() + " 23:59:59' ").Tables[0].Rows.Count +
        //    new Cisoft.Cisoft3G.BLL.OutboxBO().GetList(" OB_SendTime >='" + DateTime.Now.ToShortDateString() +
        //    " 00:00:00' and OB_SendTime <='" + DateTime.Now.ToShortDateString() + " 23:59:59' ").Tables[0].Rows.Count;
        //if (count > 5)
        //{

        //    //lblSmsCount.Text = "本日短信配额已用完。";
        //    //context.Response.Write("本日短信配额已用完。");
        //}
        //else
        //{
        //    //int countnow = 0;
        //    //countnow = 5 - count;
        //    //lblSmsCount.Text = "本日短信配额剩余" + countnow.ToString() + "条。";
        //    //context.Response.Write("本日短信配额剩余" + countnow.ToString() + "条。");
        //}
        context.Response.Write(DateTime.Now.Second.ToString());
        
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}